package com.controller.lyxmcontroller.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.service.lyxmserviceapi.testInterface.TestInterface;

@Controller
public class TestController {
	
	 @Autowired
	 private TestInterface testService;
	@RequestMapping( value = "/test/{user1}",method = RequestMethod.GET)
   public String index(@PathVariable("user1") String user1,Model model,HttpServletResponse response,HttpServletRequest request){
		System.out.println("i am in");
		//String a = testService.iAmtest("","13");
		//System.out.println(a);
		testService.testInsert();
		//sender.send();
		return "/index";
	}
	
	
}
